package com.xmb.quick.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xmb.quick.entity.SysMenu;
import com.xmb.quick.mapper.SysMenuMapper;
import com.xmb.quick.service.ISysMenuService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huangping
 * @since 2020-03-04
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {

	@Override
	public List<SysMenu> selectInfoList(Wrapper<SysMenu> ew) {
		return selectList(ew);
	}

	@Override
	public int selectInfoCount(Wrapper<SysMenu> ew) {
		return selectCount(ew);
	}

	@Override
	public void addInfo(SysMenu sysMenu) throws Exception{
		insert(sysMenu);
	}

	@Override
	public SysMenu selectInfo(Wrapper<SysMenu> ew) {
		return selectOne(ew);
	}

	@Override
	public void edit(SysMenu sysMenu) throws Exception{
		updateById(sysMenu);
	}
}
